﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 系统配置
    /// </summary>
    [Description("系统配置")]
    [Table("SysConfig")]
    public class SysConfig : TableModelBase
    {
        /// <summary>
        /// 分组
        /// </summary>
        [Description("分组")]
        public string GroupName { get; set; }

        /// <summary>
        /// 键
        /// </summary>
        [Description("键")]
        public string KeyName { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        [Description("值")]
        public string Val { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Description("备注")]
        public string Remark { get; set; }

        /// <summary>
        /// 值类型 1=字符，2=数字，3=开关，4=下拉选择
        /// </summary>
        [Description("值类型 1=字符，2=数字，3=开关，4=下拉选择")]
        public int? ValType { get; set; }
    }
}
